-- pixy_cage
-- created by panyl
-- 地牢格子：妖精的牢笼

return {
    -- 自动战斗
    autoFight = function(grid)
        if not DungeonInstanceM.isInInstance() or
            not DungeonM.isAllMonsterDead() then
            return false;
        end

        -- 解救
        local pos = grid:getPos();
        return DungeonActionM.go("open_pixy_cage", pos);
    end,
};
